home *** CD-ROM | disk | FTP | other *** search
- .geometry "version 0.1";
- v1 = .free(0.108209, 0.432836, "1");
- v2 = .free(0.309702, 0.208955, "2");
- v3 = .free(0.208955, -0.470149, "3");
- l1 = .l.vv(v1, v2);
- l2 = .l.vv(v2, v3);
- l3 = .l.vv(v3, v1);
- c1 = .c.vv(v1, v3, .invisible);
- c2 = .c.vv(v3, v1, .invisible);
- c3 = .c.vv(v1, v2, .invisible);
- c4 = .c.vv(v2, v1, .invisible);
- c5 = .c.vv(v3, v2, .invisible);
- c6 = .c.vv(v2, v3, .invisible);
- v5 = .v.cc(c6, c5, 2);
- v7 = .v.cc(c2, c1, 2);
- v9 = .v.cc(c3, c4, 2);
- l4 = .l.vv(v1, v9);
- l5 = .l.vv(v9, v2);
- l6 = .l.vv(v2, v5);
- l7 = .l.vv(v5, v3);
- l8 = .l.vv(v3, v7);
- l9 = .l.vv(v7, v1);
- l10 = .l.vlperp(v9, l1, .invisible);
- l11 = .l.vlperp(v1, l5, .invisible);
- v10 = .v.ll(l10, l11);
- l12 = .l.vlperp(v7, l3, .invisible);
- l13 = .l.vlperp(v3, l9, .invisible);
- v11 = .v.ll(l12, l13);
- l14 = .l.vlperp(v5, l2, .invisible);
- l15 = .l.vlperp(v3, l6, .invisible);
- l16 = .l.vlperp(v5, l2, .invisible);
- v15 = .v.ll(l16, l15);
- l17 = .l.vv(v11, v10, .green);
- l18 = .l.vv(v10, v15, .green);
- l19 = .l.vv(v15, v11, .green);
- .text("Napoleon's Theorem:");
- .text("");
- .text("If an equilateral triangle is constructed on each edge if a triangle,");
- .text("then the centers of the three equilateral triangles form an equilateral");
- .text("triangle. In the figure, the original triangle has vertices 1, 2, and 3.");
- .text("");
- .text("Supposedly, this theorem was discovered by Napoleon Bonaparte.");
-